package com.jic.conf.response;

import java.util.Date;
import java.util.List;

import com.jic.conf.request.base.BaseEntity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用于前端响应实体
 * @author ztq
 *2020-03-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CmsPageResponse extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(notes = "主键")
	private Long id;
	@ApiModelProperty(notes = "分类id")
	private Long cmsCategoryId;
	@ApiModelProperty(notes = "页面开始生效时间")
	private Date startDate;
	@ApiModelProperty(notes = "页面生效结束时间")
	private Date endDate;
	@ApiModelProperty(notes = "页面名称")
	private String title;
	@ApiModelProperty(notes = "页面分享标题")
	private String shareTitle;
	@ApiModelProperty(notes = "页面分享图片")
	private String shareImg;
	@ApiModelProperty(notes = "页面分享描述")
	private String shareDesc;
	@ApiModelProperty(notes = "背景图片")
	private String bgImg;
	@ApiModelProperty(notes = "背景颜色")
	private String bgColor;
	@ApiModelProperty(notes = "平台:1:h5、2:pc")
	private Integer platform;
	@ApiModelProperty(notes = "页面类型 1、平台首页 2、文章页 3、平台营销页 4、店铺首页 5、店铺营销页")
	private Integer pageType;
	@ApiModelProperty(notes = "状态: 0：草稿，1：已发布，2：下架")
	private Integer status;
	@ApiModelProperty(notes = "运营方ID")
	private Long deptId;
	@ApiModelProperty(notes = "商家ID")
	private Long merchantId;
	@ApiModelProperty(notes = "商家名称")
	private String merchantName;
	@ApiModelProperty(notes = "店铺Id")
	private Long storeId;
	@ApiModelProperty(notes = "店铺名称")
	private String storeName;
	@ApiModelProperty(notes = "是否删除：0不删除， 1删除 ")
	private Integer deleteFlag;
	@ApiModelProperty(notes = "创建时间")
	private Date createTime;
	@ApiModelProperty(notes = "更新时间")
	private Date updateTime;
	@ApiModelProperty(notes = "创建用户")
	private Long creator;
	@ApiModelProperty(notes = "更新用户")
	private Long updator;
	/**
	 * 页面下的所有栏目
	 */
	private List<CmsModuleResponse> cmsModules;
}
